
        <?php 
        if(isset($saved) && $saved){
        echo("<tr><td colspan=\"5\">Sauvegarde réussie <img src=\"images/icon-valid.png\" alt=\"Valide\" title=\"Valide\"</td></tr>");
        }
        $i=0;
        foreach ($listSeance as $key => $seanceTd) {
        ?>
        <tr> 
            <td><?php echo afficherDateTime($seanceTd["dateSeance"]);?></td>
            <td><?php echo $seanceTd["libelleSeance"];?></td>
            <td><?php echo $seanceTd["libelleEP"];?></td>            
            <td>
                <?php 
                $grp= $bda->getGroupesById($seanceTd["idgrp"]);
                echo $grp["numgrp"];
                ?>
            </td>
            <td>
                <?php 
                $presence =$bda->getPresence($etudiant["NumEtudiant"],$seanceTd["idSeance"]) ;?>
                <select class="fieldPresence" id ="fieldPresence_<?php echo $i ;?>" name="presences[<?php echo $etudiant["NumEtudiant"] ;?>]">
                    <option value="" ></option>            
                    <option class="P_green" value="P" <?php echo ("P"==$presence["presence"]?"selected='selected'":"") ?>>Présent</option>
                    <option class="R_yellow" value="R" <?php echo ("R"==$presence["presence"]?"selected='selected'":"") ?>>Retard</option>
                    <option class="ABJ_orange" value="ABJ"<?php echo ("ABJ"==$presence["presence"]?"selected='selected'":"") ?>>Absent justifiée</option>
                    <option class="AB_red" value="AB" <?php echo ("AB"==$presence["presence"]?"selected='selected'":"") ?>>Absence </option>

                </select>
                <input type="hidden" class="fieldIdSeance" id="fieldIdSeance_<?php echo $i ;?>" name="idSeance[<?php echo $etudiant["NumEtudiant"] ;?>]" value="<?php echo $seanceTd["idSeance"] ;?>"/>

            </td>
            
        </tr>
        <?php $i++;} ?>
        <tr><input type="hidden" id="fieldNumEtudiant" value="<?php  echo $etudiant["NumEtudiant"] ;?>"/>


        

    

